package club.pchome.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import club.pchome.common.util.JwtUtils;
import club.pchome.dto.Result;
import club.pchome.util.SendSms;

@RestController
public class SendSMSContoller extends BaseController{

	
	@Autowired
	SendSms sendSms;
	
	@PostMapping("/sendSms")
	public Result<Boolean> sendSms(){
//		String phone,String content
		boolean b = sendSms.clSendSms("13076906186" , "111111111111111111测试");
		
		return Result.initSuccessResult(b);
	}
	
}
